package com.hancai.barrage.mapper;

import com.hancai.barrage.pagehelper.QueryObject;
import com.hancai.barrage.pojo.Client;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client row);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client row);

    Long selectForCount(QueryObject qo);

    List<Client> selectForList(QueryObject qo);

    void changeStatus(@Param(value="id") Long id, @Param("status") Integer status);

    void logicDeleteById(@Param(value = "id") Long id, @Param("deleted") boolean deleted);
}